<%@ page language="java" contentType="text/html; charset=utf8"
         pageEncoding="utf8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="sky" uri="/WEB-INF/custom.tld" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <link rel="stylesheet" type="text/css" href="/resources/style1.css" />
    <link rel="stylesheet" type="text/css" href="/resources/header.css" />
    <link rel="stylesheet" type="text/css" href="/resources/style.css" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf8">
    <title><spring:message code="label.title" /></title>
</head>
<body>
<div id="wrapper">
    <sky:include url="WEB-INF/jsp/components/header.jsp"/>
    <div id="page">
        <div id="content">
            <div class="post">
                <c:if test="${not empty param.error}">
                    <font color="red"> <spring:message code="label.loginerror" />
                        : ${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message} </font>
                </c:if>
                <form method="POST" action="/j_spring_security_check" style="padding-left: 20px" class="form1">
                    <p><spring:message code="label.login" />:
                        <input type="text" name="j_username" style="margin-left: 12px"/></p>
                    <p><spring:message code="label.password" />:
                        <input type="password" name="j_password" /></p>
                    <p><spring:message code="label.remember" />:
                        <input type="checkbox" name="_spring_security_remember_me" /></p>
                    <p><input type="submit" value="Войти" />
                        <input type="reset" value="Стереть" /></p>
                </form>
            </div>
            <div style="clear: both;">&nbsp;</div>
        </div>
        <!-- end #content -->
        <c:set var="log" value="log" scope="request" />
        <jsp:include page="WEB-INF/jsp/components/sidebar.jsp" />
        <!-- end #sidebar -->
        <div style="clear: both;">&nbsp;</div>
    </div>
</div>
<div id="footer-content">&copy; Кси</div>
<div id="footer"></div>
</body>
</html>